package cn.weekimwee.firstlineofcodeforkotlin.unit3

import java.util.*

/**
 * Created by Wee Kim Wee on 2018/2/9.
 */
fun String.getRandomLenthName(): String {
    val length = Random().nextInt(20) + 1
    val builder = StringBuilder()
    for (i in 0..length) {
        builder.append(this)
    }
    return builder.toString()
}